<template>
  <el-dialog
    v-bind="$attrs"
    :visible.sync="visible"
    @open="openEvent"
    :close-on-click-modal="false"
  >
    <slot>

    </slot>
  </el-dialog>
</template>

<script>
  export default {
    name: "UiDialog",
    data() {
      return {
        visible: false,
      }
    },
    methods: {
      open() {
        this.visible = true;
      },
      openEvent() {
        this.$emit('open');

      },

      close() {
        this.visible = false;
      }
    }
  }
</script>

<style scoped>

</style>
